<%@ page import="model.*"%>

<%


if(request.isUserInRole("admin"))  {
	response.sendRedirect("/CSE135_Project_struts/ChairsHome.do");
}
else if(request.isUserInRole("student"))  {
	if (ApplicationModel.getAppStatus(request.getUserPrincipal().getName()).equals("notSubmitted")) {
		response.sendRedirect("login/students/pages/namePage.jsp");
	}
	else  {
		response.sendRedirect("/CSE135_Project_struts/showYourApplication.do");
	}
}else 
	if(request.isUserInRole("reviewer"))  {
		response.sendRedirect("ReviewersHome.do");
	}
%>